import { Opt } from '__com/Opt.js'
import ruleOpt from '@/option/rule.js'

export class subMsgOpt extends Opt {
  constructor() {
    super()
  }

  create() {
    return [
      [
        {
          title: '上级权限ID',
          key: 'id',
          text: {}
        },
        {
          title: '权限名称',
          key: 'title',
          input: {
            maxlength: 20
          },
          placeholder: '请输入权限名称',
          rules: [ruleOpt.required('权限名称不能为空')]
        }
      ]
    ]
  }
}
